package org.merak.core.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import org.merak.core.annotation.types.TextTransform;

/**
 * Used to style/format strings, dates and numbers
 */

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.METHOD)
public @interface Style {

	String        date()          default "";                  // A pattern to format dates
	String        number()        default "";                  // A pattern to format numbers
	String        locale()        default "";                  // Locale used when formating dates and numbers
	boolean       trim()          default false;   	           // Removes spaces from both sides of a string
	TextTransform textTransform() default TextTransform.NONE;  // Changes to upper/lowercase or capitalcase
	int           zindex()        default Integer.MAX_VALUE;   // Specifies the order of a property

}
